<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Game_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-game_id" data-rule="required" class="form-control selectpicker" name="row[game_id]" >
                <option data-type="0" value="0">请选择</option>
                {foreach name="list" item="vo"}
                <option data-type="{$vo.id}" value="{$vo.id}" >{$vo.game}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Class_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[class_type]', ['1'=>__('账号'), '2'=>__('其他')])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Buy_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[buy_type]', ['1'=>__('平台代发'), '2'=>__('卖家发货')])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Model')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-model" class="form-control" size="50" name="row[model]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-model" class="btn btn-danger faupload" data-input-id="c-model" data-mimetype="xls,xlsx" data-multiple="false" data-preview-id="p-model"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-model" class="btn btn-primary fachoose" data-input-id="c-model" data-mimetype="application/xls,application/xlsx" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-model"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-model"></ul>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
